package game.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import common.model.po.GClassification;
import game.model.dto.ClassificationTreeDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 分类Mapper接口
 *
 * @author 米泽鹏
 * @since 2022-02-26
 */
@Mapper
public interface GClassificationMapper extends BaseMapper<GClassification> {

	/**
	 * 查询类别信息并统计每个类别下的建筑数量
	 *
	 * @return List<ClassificationTreeDto>
	 */
	List<ClassificationTreeDto> selectClassificationTree(@Param("classificationType") Integer classificationType);

}
